cmake_minimum_required(VERSION 3.5)

project(bsdiff)

aux_source_directory(. SRC_LIST)

set(INCLUDE_PATH ${PROJECT_SOURCE_DIR})
set(TEST_DIR ${PROJECT_SOURCE_DIR}/test)

add_library(bsdiff SHARED ${SRC_LIST})
include_directories(${INCLUDE_PATH})

if(MSVC)
target_compile_options(bsdiff PRIVATE /w1 /wx)
else()
target_compile_options(bsdiff PRIVATE -Wall)
endif()
